import java.io.File;
import java.util.List;

import twitter4j.*;
import twitter4j.conf.ConfigurationBuilder;

public class TwitterTest {

	public TwitterTest()
	{
		
	}
	public static void main(String[] args)
	{
		ConfigurationBuilder cb = new ConfigurationBuilder();
		cb.setDebugEnabled(true)
		  .setOAuthConsumerKey("tCol5Fg2bOKDQ4qwMhcTw")
		  .setOAuthConsumerSecret("pJeJmEoMS6pmeeZ3FYpQDtnf65Qs93CaZwywIMt6Eo")
		  .setOAuthAccessToken("1539800966-mZgBtWeRafw7oYE5PmYJ5JPa6U83wwn7IJup0jy")
		  .setOAuthAccessTokenSecret("2gOZyZdvSG4YWXC60OWCsQgRZaNuFEer1P4Df41U");
		TwitterFactory tf = new TwitterFactory(cb.build());
		Twitter twitter = tf.getInstance();
		File testBackgroundImage = new File("testBackgroundImage.jpg");
		
		File testHeaderFile = new File("testHeader.jpg");
		Theme theme1 = new Theme("fff", "000", "71066d",
				null, null, testBackgroundImage, false, testHeaderFile, false);
		//TwitterDesignUpdate.changeTwitterTheme(twitter, theme1);
		
		
		//String backgroundColor, String textColor, String linkColor,
		//String sidebarFillColor, String sidebarBorderColor, header file, tile header?
		//
		/*
		Theme Christmas = new Theme();*/
	/*	try {
			twitter.updateProfileBanner(testHeaderFile);

		} catch (TwitterException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
		}
		Status status = null;*/
		/*try
		{
			//File file = new File( GeoLocation(41.8500,-87.6500);
			ResponseList respons"testImage7.jpg");//1024 x 819
			//twitter.updateProfileBackgroundImage(file,false);
			//status = twitter.updateStatus("SFTEST Agent");
			GeoLocation geo = neweList = twitter.getClosestTrends(geo);
			for(int i = 0; i < responseList.size();i++)
			{
				System.out.println(responseList.get(i));				
			}
			
			Trends trends = twitter.getPlaceTrends(2379574);
			Trend[] trendArray = trends.getTrends();

			for(int i = 0; i < 10; i++)
			{
				System.out.println(trendArray[i]);
			}
			
			/*	Query myQuery = new Query();
			myQuery.setQuery("state farm");
			QueryResult queryResult = twitter.search(myQuery);
			int count = queryResult.getCount();
			while(queryResult.hasNext())
			{
				List<Status> tweets = queryResult.getTweets();
				for(int i = 0; i < 15;i++)
				{
					System.out.println(tweets.get(i).getText());
				}
				queryResult.nextQuery();
				
			}
			queryResult.nextQuery();
			
		//	System.out.println(count);
		} catch (TwitterException e)
		{
			System.out.println(e.getMessage());
		}
		System.out.println("Successfully updated the status to [" + status.getText() + "]."); */
	}
}